package org.sucri.floxs.mock;

import org.sucri.floxs.model.Accesor;
import org.sucri.floxs.model.ColumnLayout;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Aug 12, 2007
 * Time: 2:35:48 PM
 * To change this template use File | Settings | File Templates.
 */
@ColumnLayout
    (
  header = "Foo Object",
  cols = 1,
  groups = ""
)
public class Foo
{
  @Accesor (
    header = "Name",
    group  = "Entity",
    editor = Accesor.Editor.string
  )
  public String getName() { return "Name"; }
  @Accesor (
    header = "Description",
    group  = "Entity",
    editor = Accesor.Editor.string
  )
  public String getDescription() { return "Description"; }
  @Accesor (
    header = "Age",
    group  = "Information",
    editor = Accesor.Editor.number
  )
  public Integer getAge() { return 42; }

  @Accesor (
    mode   = Accesor.Mode.setter,
    header = "Name",
    group  = "Entity",
    editor = Accesor.Editor.string
  )
  public void setName(       String s) {}
  @Accesor (
    mode   = Accesor.Mode.setter,
    header = "Description",
    group  = "Entity",
    editor = Accesor.Editor.string
  )
  public void setDescription(String s) {}
  @Accesor (
    mode   = Accesor.Mode.setter,
    header = "Age",
    group  = "Information",
    editor = Accesor.Editor.number
  )
  public void setAge(       Integer s) {}
}
